package com.jd.jobkeeper.server.data.entity;

/**
 * New -> Scheduled -->(Completed)
 */
public enum TaskStatus {

    New(0),
    Scheduled(1),
    Running(2),
    Completed(4),

    ;

    private int v;

    TaskStatus(int v) {
        this.v = v;
    }

    public int getV() {
        return v;
    }

    public boolean is(int status) {
        return v == status;
    }
}
